package com.kaili.basic.mapper;


import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.kaili.basic.pojo.dto.ReceivableHandleQueryDto;
import com.kaili.basic.pojo.entity.HandleExport;
import com.kaili.basic.pojo.entity.ReceivableExport;
import com.kaili.basic.pojo.entity.ReceivableHandle;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;


/**
 * Created by xxx on 18-4-25.
 */

@Mapper
public interface ReceivableHandleMapper {
    //添加
    int addReceivableHandle(ReceivableHandle receivableHandle);

    //删除
    int deleteReceivableHandles(Map<String, Object> map);

    //修改
    int updateReceivableHandle(ReceivableHandle receivableHandle);

    //条件查询获取信息
    List<ReceivableHandle> queryReceivableHandle(Pagination page, ReceivableHandleQueryDto receivableHandleQueryDto);

    //id查询信息
    ReceivableHandle queryReceivableHandleById(Long receivableHandleId);

    //流水号查询信息
    ReceivableHandle queryBySerialNumber(String serialNumber);

    //查询当前数据库中的最大ID
    Long getMaxReceivableHandleId();

    //导出应收
    List<ReceivableExport> queryReceivableExport(ReceivableHandleQueryDto receivableHandleQueryDto);

    //导出应付
    List<HandleExport> queryHandleExport(ReceivableHandleQueryDto receivableHandleQueryDto);
}
